﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Services.Client;
using Microsoft.Samples.ServiceHosting.StorageClient;

namespace UlyssesAgenda.Storage.Table
{
    public class BlogEntry : TableStorageEntity
    {
        public string Author { get; set; }
        public DateTime CreateDateTime { get; set; }
        public string Title { get; set; }
        public string Url { get; set; }
        public string CanonicalName { get; set; }
    }

    internal class BlogServiceContext : TableStorageDataServiceContext
    {
        public DataServiceQuery<BlogEntry> BlogEntries
        {
            get
            {
                return this.CreateQuery<BlogEntry>("BlogEntries");
            }
        }
    }
}
